package com.cj.webapp.common.dao;

import com.cj.webapp.account.dao.HangMapper;
import com.cj.webapp.account.pojo.ProHangDto;
import com.cj.webapp.common.dto.RsDockingB;
import com.cj.webapp.common.utils.MybatisUtil;
import org.apache.ibatis.session.SqlSession;
import org.apache.ibatis.session.SqlSessionFactory;

import java.util.List;

/**
 * Created by dell on 2018/1/3.
 */
public class RsDockingBDaoImpl {
    private SqlSessionFactory sessionFactory = MybatisUtil.getInstance();
    //创建能执行映射文件中sql的sqlSession
    SqlSession session = sessionFactory.openSession();
    RsDockingBDao rsDockingBDao = session.getMapper(RsDockingBDao.class);

    public List<RsDockingB> queryRsDockingB(){
        List<RsDockingB> list=null;
        try {
            list=rsDockingBDao.queryRsDockingB();
        }catch (Exception e){
            e.printStackTrace();
        }
        return  list;
    }

}
